package cn.iocoder.boot.test.infrastructure;

import cn.iocoder.boot.infrastructure.persistent.dao.IAwardDao;
import cn.iocoder.boot.infrastructure.persistent.po.Award;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Huangjun
 * @description 奖品表 DAO 测试
 * @create 2025/10/25
 */
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class AwardDaoTest {
    @Resource
    private IAwardDao awardDao;
    /**
     * 测试查询奖品列表
     */
    @Test
    public void test_queryAwardList() {
        List<Award> awardList = awardDao.queryAwardList();

        log.info("测试结果, awardList={}", awardList);
    }
}
